// 素材管理Api

import request from '@/api/request'

// 图片列表
export function uploadList(data) {
  return request({
    url: '/admin/xy/upload/list',
    method: 'get',
    data
  })
}

// 上传图片
export function uploadImg(data) {
  return request({
    url: '/admin/xy/upload/uploadImg',
    method: 'post',
    data
  })
}

// 更新标题
export function updateTitle(data) {
  return request({
    url: '/admin/xy/upload/updateTitle',
    method: 'post',
    data
  })
}

// 删除图片
export function delImg(data) {
  return request({
    url: '/admin/xy/upload/del',
    method: 'get',
    data
  })
}

